﻿using System;
using System.Collections.Generic;
using System.Configuration;
using System.IO;
using System.Linq;
using System.Web;

namespace LSService
{
    public class WebConfig
    {
        public static string SavePath
        {
            get
            {
                try
                {
                    var path = ConfigurationManager.ConnectionStrings["SoundSavePath"].ToString().Trim();
                    var dinfo = new DirectoryInfo(path);
                    if (!dinfo.Exists) dinfo.Create();
                    return path;
                }
                catch (Exception)
                {
                    throw;
                }
            }
        }
    }
}